package com.cincc.taofangwang.widget;

import android.content.Context;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.cincc.taofangwang.R;
import com.lxj.xpopup.core.AttachPopupView;

public class CustomWarnPopup extends AttachPopupView {

    String info = "";

    public CustomWarnPopup(@NonNull Context context, String info) {
        super(context);
        this.info = info;
    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.warn_popup;
    }

    @Override
    protected void initPopupContent() {
        super.initPopupContent();
        TextView textView = findViewById(R.id.info_tv);
        textView.setText(info);
    }
}
